package week02.day02;

/**
 * 已知圆的半径R=2，求圆的周长与面积
 */

public class 上机练习 {
    public static void main(String[] args) {
        int banjing = 2;
        double pai = 3.14;
        double zhouchang = banjing * pai * 2;
        double mianji = pai * 2 * 2;
        System.out.println("圆的周长为"+zhouchang);
        System.out.println("圆的面积为"+mianji);
    }
}
